/**
 * UninaDocentiSync - A Java application to synchronize Unina resources
 * Copyright (C) 2011  Fabio Scippacercola (nonplay.programmer@gmail.com)
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330,
 * Boston, MA 02111-1307, USA.
 */


package uninadocenti.framework;

/**
 *
 * @author Fabio Scippacercola (nonplay.programmer@gmail.com)
 */
public class Docente implements java.io.Serializable
{

    public Docente(String idDocente, String nomeDocente, String cognomeDocente, String dipartimentoDocente) {
        this.idDocente = idDocente;
        this.nomeDocente = nomeDocente;
        this.cognomeDocente = cognomeDocente;
        this.dipartimentoDocente = dipartimentoDocente;
    }

    public String getCognomeDocente() {
        return cognomeDocente;
    }

    public String getDipartimentoDocente() {
        return dipartimentoDocente;
    }

    public String getIdDocente() {
        return idDocente;
    }

    public String getNomeDocente() {
        return nomeDocente;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Docente other = (Docente) obj;
        if ((this.idDocente == null) ? (other.idDocente != null) : !this.idDocente.equals(other.idDocente)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 11 * hash + (this.idDocente != null ? this.idDocente.hashCode() : 0);
        return hash;
    }

    @Override
    public String toString() {
        return String.format("%s %s", nomeDocente, cognomeDocente);
    }


    
    protected String idDocente;
    protected String nomeDocente;
    protected String cognomeDocente;
    protected String dipartimentoDocente;
}
